#!/bin/sh

IB_CFG_DIR="${HOME}/.config/ImgBurn"
IB_IBG_DIR="${IB_CFG_DIR}"/"Graph Data Files"
IB_LOG_DIR="${IB_CFG_DIR}"/"Log Files"

IB_CFG_FILE="${IB_CFG_DIR}/ImgBurn.ini"
IB_IBG_FILE="${IB_IBG_DIR}/ImgBurn.ibg"
IB_LOG_FILE="${IB_LOG_DIR}/ImgBurn.log"

mkdir -p "${IB_CFG_DIR}"
mkdir -p "${IB_IBG_DIR}"
mkdir -p "${IB_LOG_DIR}"

cd "/opt/imgburn"
exec wine ImgBurn.exe /SETTINGS "Z:/${IB_CFG_FILE}" /IBG "Z:/${IB_IBG_FILE}" /LOG "Z:/${IB_LOG_FILE}" /PORTABLE "$@"
